<template>
  <div class="axios_container">
    <el-alert  :closable="false" title="测试请求失败重试" type="info" show-icon> </el-alert>
    <el-button @click="ajaxPost" style="margin:10px 0" type="primary">发起请求</el-button>
     <el-button @click="ajaxPost1" style="margin:10px 0" type="primary">发起请求1</el-button>
  </div>
</template>


<script>
// @ is an alias to /src


export default {
  name: 'Axios',
  components: {
    
  },
  methods:{
      async ajaxPost(){
        let res = await this.$http('/felapi/sys/front/init-info')
      },
       async ajaxPost1(){
        let res = await this.$http('http://localhost:3001/search')
      }
  }
}
</script>
<style lang="less" scoped>
.axios_container {
  text-align: left;
}
</style>
